import request from '@/utils/request';

// 岗位
// export const followType = params => request({
//     url: '/admin/statistics/followType',
//     method: 'GET',
//     params
// });

// ------------------------价格管理-------------------------
// 价格管理列表
export const priceStrategyList = params => request({
    url: '/drug/priceStrategy/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 价格管理新增
export const priceStrategyAdd = params => request({
    url: '/drug/priceStrategy/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 价格管理更新
export const priceStrategyUpdate = params => request({
    url: '/drug/priceStrategy/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 价格管理状态更新
export const updateStatus = params => request({
  url: '/drug/priceStrategy/updateStatus',
  method: 'POST',
  data: params
}).then(res => {
  return res;
});

// 价格管理详情
export const priceStrategyDetail = params => request({
    url: '/drug/priceStrategy/get',
    method: 'GET',
    params
}).then(res => {
    return res;
});
// 价格管理删除
export const priceStrategyDel = params => request({
    url: '/drug/priceStrategy/del',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 价格管理药品调价
export const priceStrategyModifyPrice = params => request({
    url: '/drug/priceStrategy/modifyPrice',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 获取药品价格管理
export const getU8cPrice = params => request({
    url: '/drug/priceStrategy/getU8cPrice',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// ------------------------销售价格-------------------------
// 销售价格列表
export const priceStrategySubList = params => request({
    url: '/drug/priceStrategy/subList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 调价记录列表
export const modifyPriceRecord = params => request({
  url: '/drug/priceStrategy/modifyPriceRecord',
  method: 'POST',
  data: params
}).then(res => {
  return res;
});
